package top.lvkun.pet.service;

import top.lvkun.basic.service.IBaseService;
import top.lvkun.basic.utils.AjaxResult;
import top.lvkun.pet.domain.Pet;
import top.lvkun.pet.domain.PetType;

import java.util.List;

public interface IPetService extends IBaseService<Pet> {
    /**
     * 查询所有宠物类型
     * @return
     */
    List<PetType> getPetTypes();

    /**
     * 宠物批量上架
     * @param ids
     */
    AjaxResult patchUp(List<Long> ids);

    /**
     * 宠物批量下架
     * @param ids
     */
    AjaxResult patchDown(List<Long> ids);

    /**
     * 添加宠物，修改宠物信息
     * @param pet
     */
    void AddOrUpdate(Pet pet);
}
